package org.feiye.studyday07;

public class Arrays2 {

	public static void main(String[] args) {
		// 定义一个数组，倒序输出
		int[] nums = { 18, 12, 19, 43, 49 };
		// 原来的数组
		System.out.println("原数组");
		for (int i = 0; i < nums.length; i++) {
			System.out.print(nums[i] + "  ");
		}
		// 倒转
		System.out.println("\n新数组");
		for (int i = nums.length - 1; i >= 0; i--) {
			System.out.print(nums[i] + "  ");
		}

	}
}
